﻿@model IEnumerable<VOD.Models.Video>
@using VOD.Helpers
@if (Model.Count() > 0)
{
    var i = 1;
    string pClass="natantVideoInfo videoInfoRight";
    <div class="re_videoBox clearfix">
        <div class="re_title"><a class="more" href="#">》更多</a>@ViewBag.ColTitle</div>
        <ul class="photoList">
            @foreach (var video in Model)
            {
                if (i == 4)
                {
                    pClass = "natantVideoInfo videoInfoLeft";   
                }
                <li>
                    <a class="videoImg" href="@Url.Action("Play", "Video", new { id=video.VideoID})">
                        <span class="btn_nowPlay">点击播放</span>
                        <span class="title">
                            @foreach(var type in video.VideoAndTypes){
                                @:&nbsp;@type.VideoType.TypeName
                            }
                        </span>
                        <p class="@pClass">
                            <span class="bg_border"></span>
                            <span class="short">
                                <b>@video.Name</b>
                                <br />
                                <i>类型：
                                    @foreach(var type in video.VideoAndTypes){
                                        @type.VideoType.TypeName@:&nbsp;
                                    }
                                </i>
                                <i>主演：@video.Actor</i>
                            </span>
                            <span>简介：@Html.Truncate(video.Intro,45)</span>
                        </p>
                        <img alt="" width="96" height="128" src="@Url.Content("~/Content/images/VideoImg/"+video.VideoID+".jpg")" onerror="javascript:this.src='@Url.Content("~/Content/images/nopic.jpg")'" />
                    </a>
                    <a class="videoTitle" href="@Url.Action("Play", "Video", new { id=video.VideoID})">@video.Name</a>
                    <a class="videoIntro">@video.ShortTitle</a>
                </li>
                i++;
            }
        </ul>
    </div>
}